<template>
    <div>
        <div class="ttop"> <van-nav-bar title="乐购" left-text="返回" left-arrow  @click-left="onClickLeft"/></div>
          <div class="title">我的收藏</div>
    </div>
    
</template>

<script>
    import {listAction} from "@/api/my/collection.js"
    
    export default {
        data(){
            return{
                list:[]
            }
        },
        methods:{
            onClickLeft(){
                this.$router.go(-1)
            }
        },
        created(){
            var openId=localStorage.getItem("openId");
            listAction({
                openId:"openId"
            }).then(res=>{
                console.log(res);
                this.list=res.collectGoodsList
            })
            
        }
    }
</script>

<style lang="scss" scoped>
.ttop{
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    height: 46px;
    z-index: 666;
}
.title{
    margin-top: 10px;
    height: 44px;
    width: 100%;
}
</style>